import React from "react";
// 排序tab
export class Tabs extends React.Component {
  render() {
    return (
      <div className="tabs-order">
        {this.props.tabs.map(item => {
          return (
            <div onClick={() => this.props.changeTab(item.type)} className={this.props.active === item.type ? 'on' : ''} key={item.id}>按{item.name}排序</div>
          )
        })}
      </div>
    )
  }
}